#!/bin/sh
# image_name="swr.cn-north-4.myhuaweicloud.com/g6/ai-training" # 正式环境
image_name="10.168.1.90:8787/web-spa/ai-training" #新测试环境

image_version="v1.4.75"
echo $image_name:$image_version
docker rm -f $image_name
docker rmi -f $image_name:$image_version
docker build -t $image_name:$image_version .
docker push $image_name:$image_version
echo "successful"
